package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.admin.dto.SubjectFunctionDTO;
import org.jsola.admin.vo.FunctionModularVO;
import org.jsola.core.Result;
import org.jsola.hr.query.HrFunctionModularQueryDTO;

import javax.validation.Valid;
import java.util.List;

@Api(tags = "hr-功能模块列表")
public interface IHrFunctionModularControllerAPI {

    /**
     * 获取应用功能模块
     *
     * @param subjectFunctionDTO 应用id
     * @return 功能模块列表对象
     */
    @ApiOperation(value = "获取应用功能模块")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "subjectFunctionDTO",
                    dataType = "SubjectFunctionDTO",
                    value = "查询功能模块列表", paramType = "param")

    })
    Result<List<FunctionModularVO>> listByApp(@Valid HrFunctionModularQueryDTO subjectFunctionDTO);


}
